import React from 'react'
import { Link, NavLink, history } from 'umi'
import { Button } from 'antd'
import './index.less'

const layouts = (props: any) => {
  
  const gotopage = () => {
    history.push({
      pathname: '/user/one'
    })
  }

  return (
    <div>
      <h1>head</h1>
      <hr />
      {/* 引入内容子组件 */}
      {props.children}
      <hr />
      <h1>foot</h1>
    </div>
  )
}

export default layouts
